#! /usr/bin/env python
# -*- coding:utf-8 -*-

num = 1

# 写法1
# while num<=10:
#     if num!=7:
#         print(num)
#     num+=1

# 写法2
# while num<=10:
#     if num==7:
#         num+=1
#         continue
#     print(num)
#     num+=1

# 写法3
while num <= 10:
    if num == 7:
        num = 8
    print(num)
    num += 1
